package com.gc.ykqx.service.entity;

import java.util.List;

/**
 * Created by WSD on 2017/10/5.
 */

public class SiteResponse {
    /**
     * returnCode : 0
     * returnMessage : Query Succeed
     * rowCount : 30
     * colCount : 4
     * DS : [{"Station_Name":"姘稿悍","Lon":"120.0300","Lat":"28.9000","stationId":"58643"},{"Station_Name":"鍓嶄粨","Lon":"120.1000","Lat":"28.8000","stationId":"K6019"},{"Station_Name":"鏌樺箔涓�","Lon":"120.2300","Lat":"28.9500","stationId":"K6020"},{"Station_Name":"妗ヤ笅","Lon":"120.1800","Lat":"29.0300","stationId":"K6021"},{"Station_Name":"鏉庡簵","Lon":"119.9700","Lat":"28.8600","stationId":"K6028"},{"Station_Name":"鍏瓧澧�","Lon":"119.9100","Lat":"29.0100","stationId":"K6029"},{"Station_Name":"璞＄彔","Lon":"120.0700","Lat":"29.0300","stationId":"K6030"},{"Station_Name":"鏉ㄦ邯","Lon":"120.1400","Lat":"28.8900","stationId":"K6062"},{"Station_Name":"涓婇粍","Lon":"120.0000","Lat":"28.9500","stationId":"K6063"},{"Station_Name":"婧哺","Lon":"120.1300","Lat":"28.9600","stationId":"K6064"},{"Station_Name":"涓北","Lon":"120.1200","Lat":"29.0600","stationId":"K6095"},{"Station_Name":"妫犳邯","Lon":"120.2900","Lat":"28.9500","stationId":"K6096"},{"Station_Name":"鑸熷北","Lon":"119.9900","Lat":"28.8100","stationId":"K6109"},{"Station_Name":"姘哥ゥ","Lon":"119.9900","Lat":"28.8300","stationId":"K6110"},{"Station_Name":"鏂版ゼ","Lon":"120.2200","Lat":"28.8600","stationId":"K6134"},{"Station_Name":"绛婚噷","Lon":"120.1000","Lat":"28.8700","stationId":"K6164"},{"Station_Name":"闀垮煄","Lon":"120.0700","Lat":"28.9000","stationId":"K6165"},{"Station_Name":"澶忔潨鏇�","Lon":"120.1000","Lat":"29.0000","stationId":"K6166"},{"Station_Name":"濮氬","Lon":"120.0700","Lat":"28.8400","stationId":"K6186"},{"Station_Name":"瑗跨鍥�","Lon":"120.0500","Lat":"28.9600","stationId":"K6192"},{"Station_Name":"澶栧浗璇�","Lon":"120.0400","Lat":"28.8800","stationId":"K6200"},{"Station_Name":"浜斿嘲","Lon":"120.1800","Lat":"28.9300","stationId":"K6211"},{"Station_Name":"鍥涗腑","Lon":"120.0100","Lat":"28.8900","stationId":"K6220"},{"Station_Name":"寮撳","Lon":"120.1400","Lat":"28.9900","stationId":"K6221"},{"Station_Name":"宄扮","Lon":"120.1400","Lat":"28.8400","stationId":"K6225"},{"Station_Name":"妞掑潙","Lon":"120.0000","Lat":"29.0100","stationId":"K6226"},{"Station_Name":"瑗挎邯","Lon":"120.2400","Lat":"29.0200","stationId":"K6229"},{"Station_Name":"姘稿悍涓","Lon":"120.0200","Lat":"28.9100","stationId":"K6236"},{"Station_Name":"澶у瘨灞�","Lon":"119.9500","Lat":"29.0500","stationId":"K6804"},{"Station_Name":"灏氫粊","Lon":"119.9500","Lat":"28.9400","stationId":"K6805"}]
     */

    private int returnCode;
    private String returnMessage;
    private int rowCount;
    private int colCount;
    private List<DSBean> DS;

    public int getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(int returnCode) {
        this.returnCode = returnCode;
    }

    public String getReturnMessage() {
        return returnMessage;
    }

    public void setReturnMessage(String returnMessage) {
        this.returnMessage = returnMessage;
    }

    public int getRowCount() {
        return rowCount;
    }

    public void setRowCount(int rowCount) {
        this.rowCount = rowCount;
    }

    public int getColCount() {
        return colCount;
    }

    public void setColCount(int colCount) {
        this.colCount = colCount;
    }

    public List<DSBean> getDS() {
        return DS;
    }

    public void setDS(List<DSBean> DS) {
        this.DS = DS;
    }

    public static class DSBean {
        /**
         * Station_Name : 姘稿悍
         * Lon : 120.0300
         * Lat : 28.9000
         * stationId : 58643
         */

        private String station_name;
        private String lon;
        private String lat;
        private String stationId;

        public String getStation_name() {
            return station_name;
        }

        public void setStation_name(String station_name) {
            this.station_name = station_name;
        }

        public String getLon() {
            return lon;
        }

        public void setLon(String lon) {
            this.lon = lon;
        }

        public String getLat() {
            return lat;
        }

        public void setLat(String lat) {
            this.lat = lat;
        }

        public String getStationId() {
            return stationId;
        }

        public void setStationId(String stationId) {
            this.stationId = stationId;
        }
    }

    @Override
    public String toString() {
        StringBuffer sb = new StringBuffer();
        for (SiteResponse.DSBean ds : DS) {
            sb.append("{站号:").append(ds.stationId + " ").append(",站名:").append(ds.station_name + " ")
                    .append(",经度:").append(ds.lon).append(",纬度:").append(ds.lat + " ").append("}");
        }
        return sb.toString();
    }
}
